﻿namespace QQTools.Core.Enums.ForwardGroupMessage
{
    /// <summary>
    /// 转发群消息发送状态枚举
    /// 0.未开始, 1.进行中, 2.成功, 3.失败, 4.暂停
    /// </summary>
    public enum ForwardGroupMsgStatus
    {
        NotStarted = 0,
        Running = 1,
        Success = 2,
        Failed = 3,
        Paused = 4 
    }


    public static class ForwardGroupMsgStatusExtensions
    {
        public static string ToChineseString(this ForwardGroupMsgStatus status)
        {
            switch (status)
            {
                case ForwardGroupMsgStatus.NotStarted:
                    return "-";
                case ForwardGroupMsgStatus.Success:
                    return "✔️";
                case ForwardGroupMsgStatus.Running:
                    return "⏳";
                case ForwardGroupMsgStatus.Failed:
                    return "❌";
                case ForwardGroupMsgStatus.Paused:
                    return "⏸";
                default:
                    return "未知";
            }
        }
    }
}
